using System;
using System.Collections.Generic;
using System.Text;
namespace BLL.BusinessLayer
{
	[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
	[Serializable]
	public class ClsLanguages: BusinessObjectBase
	{

		public ClsLanguages() {}

		#region InnerClass
		public enum ClsLanguagesFields
		{
			LanguageID,
			LanguageName,
			Link
		}
		#endregion

		#region Data Members

			int _languageID;
			string _languageName;
			string _link;

		#endregion

		#region Properties

		public int  LanguageID
		{
			 get { return _languageID; }
			 set
			 {
				 if (_languageID != value)
				 {
					_languageID = value;
					 PropertyHasChanged("LanguageID");
				 }
			 }
		}

		public string  LanguageName
		{
			 get { return _languageName; }
			 set
			 {
				 if (_languageName != value)
				 {
					_languageName = value;
					 PropertyHasChanged("LanguageName");
				 }
			 }
		}

		public string  Link
		{
			 get { return _link; }
			 set
			 {
				 if (_link != value)
				 {
					_link = value;
					 PropertyHasChanged("Link");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("LanguageID", "LanguageID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("LanguageName", "LanguageName",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Link", "Link",100));
		}

		#endregion

	}
}
